home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
gina15.zip
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-02-27
|
3KB
|
98 lines
# @(#)Makefile 1.21 2/27/92
# Main Makefile for GINA++
############################################################################
SCCS_SUBDIRS = include/Gina basic widgets src demos demos/gredit demos/sleuth \
bitmaps sample doc doc/ug doc/ur emacs-library
SCCS_DIRS = . $(SCCS_SUBDIRS)
DIRECTORIES = include $(SCCS_SUBDIRS)
SCCS_MASTER = /vol/gina/GINA++/master
TAR_DEVICE = ../GINA++1.4.tar
TAR_IGNORE = TAR_IGNORE
CPLUS = /vol/lang/CC
CC = /usr/bin/cc
# Gina include files
OWNDIR = -I../include
#include files for compilation in the yp domain F3SERVER
CCDIR = -I/vol/lang/SC1.0/include/CC
MOTIFDIR = -I/vol/motif/include
#libs for compilation in the yp domain F3SERVER
LIBPATH = -L/vol/motif/lib
install: contracts_lib debug_lib normal_lib install_demos
contracts_lib:
(cd src; make install CPLUS="$(CPLUS)" CC="$(CC)" \
CFLAGS="-c -DGINA_DEBUG" CPPFLAGS="" LDFLAGS="" \
CCDIR="$(CCDIR)" MOTIFDIR="$(MOTIFDIR)" \
GARCHIVE="libGINA_d.a")
debug_lib:
(cd src; make install CPLUS="$(CPLUS)" CC="$(CC)" \
CFLAGS="-c -g -DGINA_DEBUG" CPPFLAGS="" LDFLAGS="-g" \
CCDIR="$(CCDIR)" MOTIFDIR="$(MOTIFDIR)" \
GARCHIVE="libGINA_dg.a")
normal_lib:
(cd src; make install CPLUS="$(CPLUS)" CC="$(CC)" \
CFLAGS="-c -O" CPPFLAGS="" LDFLAGS="-O" \
CCDIR="$(CCDIR)" MOTIFDIR="$(MOTIFDIR)" \
GARCHIVE="libGINA.a")
install_demos:
(cd demos; make install CPLUS="$(CPLUS)" CC="$(CC)" \
CFLAGS="-c -O" CPPFLAGS="" LDFLAGS="-O" \
CCDIR="$(CCDIR)" MOTIFDIR="$(MOTIFDIR)")
(cd demos/gredit; make install CPLUS="$(CPLUS)" CC="$(CC)" \
CFLAGS="-c -O" CPPFLAGS="" LDFLAGS="-O" \
CCDIR="$(CCDIR)" MOTIFDIR="$(MOTIFDIR)")
(cd demos/sleuth; make install CPLUS="$(CPLUS)" CC="$(CC)" \
CFLAGS="-c -O" CPPFLAGS="" LDFLAGS="-O" \
CCDIR="$(CCDIR)" MOTIFDIR="$(MOTIFDIR)")
sccs_command:
for dir in $(SCCS_DIRS); do \
(cd $$dir; \
echo -n "./$$dir: "; \
sccs $(SCCS_COMMAND) ) \
done
sccs_info:
make sccs_command SCCS_COMMAND=info
tar:
tar cvFFhXf $(TAR_IGNORE) $(TAR_DEVICE) ./*
tags:
/vol/emacs.sun4/bin/etags include/Gina/*.h widgets/*.C src/*.C demos
bootstrap:
-sccs get SCCS
-mkdir $(DIRECTORIES)
for dir in $(SCCS_SUBDIRS); do \
(cd $$dir; \
ln -s $(SCCS_MASTER)/$$dir/SCCS SCCS; \
sccs get SCCS; \
if test -f Makefile.SCCS; then \
mv Makefile.SCCS Makefile; \
fi) \
done
sccsremove:
find . -name SCCS -print -exec rm '{}' \;
clean:
(cd basic; make clean)
(cd widgets; make clean)
(cd src; make clean)
(cd demos; make clean)
(cd demos/sleuth; make clean)
(cd demos/gredit; make clean)